greedy algorithm vs dynamic programming

join shbcf.ru